#!/usr/bin/env python
# -*- coding: utf-8 -*-
__doc__ = """
    This is de main GoblinX Magic Control Center window.
"""
import pygtk
pygtk.require('2.0')
import gtk
import gobject
import gettext

import __builtin__
__builtin__._ = gettext.gettext

__author__ = "GoblinX Team"

class GXMCC():
    __doc__ = """
        This class builds the MCC window and
        link buttons and functions
    """
    def __init__(self):
        # Setting some environment variables
        self.systemname = "GoblinX"
        # Creating the window and setting attributes
        self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
        self.window.set_title(_("%s Magic Control Center") % self.systemname)
        self.window.set_border_width(4)
        self.window.set_size_request(600,400)
        self.window.set_position(gtk.WIN_POS_CENTER)
        # Creating a Vertical Box
        self.main_vbox = gtk.VBox()
        # Creating buttons
        # Connecting signals
        self.window.connect("destroy", self.close)
        # Showing window
        self.window.show()

    def main(self):
        gtk.main()

    def close(self, widget):
        gtk.main_quit()

gxmcc = GXMCC()
gxmcc.main()
